home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-03-28 | 1.3 KB | 49 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="6"
- "COUNT"="1"
- "UIPATH"="System\Security\Windows NT/2000"
- "NAME"="Lock Workstation"
- "VERSION"="1.06"
- "OSVERSION"="01010"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Enable "Lock Workstation" command in security screen"
- "DESCRIPTION 1"="Pressing CTRL+ALT+DEL will show the "Windows NT Security" screen, which normally includes the "Lock Workstation" command."
- "DESCRIPTION 2"="If this option is deactivated, the user can no longer activate this command (the button appears grayed-out)."
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
- "COMMENT 2"=" "
-
-
- sPath="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\"
- sV1="DisableLockWorkstation" 'DW
- Sub Plugin_Initialize
- i=RegReadValue(sPath & sV1)
- if IsEmpty(i) or i=0 then
- SetUIElement 1,true
- end if
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- b=GetUIElement(1)
- if b=true then
- i=RegReadValue(sPath & sV1)
- if IsEmpty(i)=false then
- Call RegDeleteValue(sPath & sV1)
- end if
- else
- Call RegWriteValue(sPAth & sV1,1,2)
- end if
-
- End Sub
-
- Sub Plugin_Terminate
- End Sub
-
-
-
-